package com.hopool.shop.dao;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hopool.shop.BaseTest;

public class DaoBaseTest extends BaseTest {
	protected ApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
	public DaoBaseTest() {
		super();
	}
	public DaoBaseTest(String name) {
		super(name);
	}
	
	@Override
	protected void setUp() throws Exception {
//		ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
//		SessionFactory sf = (SessionFactory) ctx.getBean("sessionFactory");
	}
	@Override
	protected void tearDown() throws Exception {
//		SessionUtil.getCurrentSession().flush();
//		SessionUtil.closeSession();
//		SessionUtil.closeSessionFactory();
	}
	
}
